package cn.slt.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.slt.domian.SearchResult;
import cn.slt.mapper.ArrayMapper;
import cn.slt.service.ArrayService;
@Service
@Transactional
public class ArrayServiceImpl implements ArrayService{

	@Autowired
	private ArrayMapper mapper;
	@Override
	public List<SearchResult> queryComplexSearch(String mdName, String keyWords,
			String summary, String buildUnit, String orderby) {
		
		Map<String,String> map = new HashMap<String, String>();
		map.put("mdName", mdName);
		map.put("keyWords", keyWords);
		map.put("summary", summary);
		map.put("buildUnit", buildUnit);
		map.put("orderby", orderby);
		return mapper.queryComplexSearch(map);
	}

	
}
